<template>
	<view class="tag" :style="theme">
		{{props.text}}
	</view>
</template>

<script setup>
	import {ref} from 'vue'
	const props = defineProps({
		bc:String,
		color:String,
		w:String,
		text:String,
		r:String
	})
	const theme = ref({
		background:props.bc||'red',
		color:props.color||'#fff',
		width:props.w,
		padding:' 0 10rpx',
		borderRadius:props.r||'20rpx',
	})
</script>

<style>
</style>